package com.example.demo.controller;

import java.util.ArrayList;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author CJunGod 1038804380@qq.com
 *
 */
@Controller
public class HelloController {

	@GetMapping("/index")
	public String hello(Map<Object, Object> map) {
		map.put("name", "大帅哥");
		map.put("sex", "1");
		map.put("age", "18");
		
		ArrayList<Object> list = new ArrayList<Object>();
		list.add("小白");
		list.add("是你吗？");
		list.add("我喜欢你");
		
		map.put("list", list);
		return "hello";
	}
}
